package com.tca.spring.framework.learning.ioc;

import com.tca.spring.framework.learning.ioc.config.ImportConfiguration;
import com.tca.spring.framework.learning.ioc.config.PropertySourceConfiguration;
import com.tca.spring.framework.learning.ioc.properties.Player;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhoua
 * @Date 2021/5/2
 */
public class SpringPropertiesStarter {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(PropertySourceConfiguration.class);
        Player bean = applicationContext.getBean(Player.class);
        System.out.println(bean);
    }
}
